<!DOCTYPE html>
<html>

<head>
    <include file="public@head" title="编辑管理员-系统设置"/>
</head>

<body class="layui-layout-admin">
<include file="public@header"/>
<include file="public@side"/>
<div class="layui-body">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a href="{:url('admin/index/index')}">主页</a>
        <a href="">系统设置</a>
        <a href="{:url('admin/admin/index')}">管理员列表</a>
        <a><cite>编辑管理员</cite></a>
    </div>

    <div class="layui-fluid mgt10">
        <div class="layui-card">
            <div class="layui-card-header">
                编辑管理员
            </div>
            <div class="layui-card-body">
                <form method="post" action="{:url('edit')}" class="layui-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label">登录账号<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="admin_login" lay-verify="required" value="{$data.admin_login}" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">昵称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="nick_name" value="{$data.nick_name}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">电话<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <input type="tel" class="layui-input" name="mobile" value="{$data.mobile}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">身份<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <select name="group_id">
                                <volist name="roles" id="val">
                                    <option value="{$val.id}" <eq name="data.group_id" value="$val['id']">selected</eq> >{$val.title}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">邮箱<span class="form-required"></span></label>
                        <div class="layui-input-inline">
                            <input type="email" class="layui-input" name="email" lay-verify="email" value="{$data.email}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否启用<span class="form-required"></span></label>
                        <div class="layui-input-block">
                            <input type="radio" class="layui-input" name="status" value="1" title="是" <if condition="$data['status'] eq 1">checked="checked"</if> >
                            <input type="radio" class="layui-input" name="status" value="0" title="否" <if condition="$data['status'] eq 0"> checked="checked"</if> >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="hidden" name="id" value="{$data.id}">
                            <button type="submit" class="layui-btn" lay-submit lay-filter="general">保存</button>
                            <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="public@scripts"/>
</body>

</html>
